import Vue from "vue";
import App from "./App.vue";
import store from "./store/index";

import Category from "./model/CateEnum";
import ItemData from "./model/ItemData";
import DataHelper from "./store/DataHelper";
import ActionHelper from "./store/ActionHelper";

Vue.config.productionTip = false;

new Vue({
  store,
  render: (h) => h(App),
}).$mount("#app");

// let dataHelp = new DataHelper("memberList", "id");

// dataHelp.saveData([
//   {
//     id: "2",
//     categoryId: "2",
//     title: "ts+vue哈哈哈",
//     content: "哈哈哈",
//     createTime: "2020-7-11 18:00",
//   },
// ]);

let itemdata = new ItemData(3, Category.life, "疫情终将过去", "迎接美好的生活");

let ah = new ActionHelper();
// ah.add(itemdata);
// ah.edit(itemdata);
// ah.remove(3);

// console.log(ah.memberList);
